﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.IO;

namespace SavingStudentInBinaryFile
{
    class StundetTest
    {
        static void Main(string[] args)
        {
            string writerFile = "students.bin";
            //FileStream writeStream = new FileStream(writerFile,FileMode.OpenOrCreate,FileAccess.Write);
            //BinaryWriter writer = new BinaryWriter(writeStream);
            Student typak = new Student("pesho", "gosho", 1);
            Student kreten = new Student("gosho", "pesho", 2);
            //using (writer)
            //{
            //    Student.AddStudent(writer, typak);
            //    Student.AddStudent(writer, kreten);
            //}
            Student.DeleteStudent(typak.FacultyNumber);
        }
    }
}
